package com.wonking.springbootv2.source;

import java.sql.SQLException;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.wonking.springbootv2.value.AnnoValue;

 

public class AnnoConfig {

	public static void main(String[] args) throws SQLException {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AnnoValue.class);
		AnnoValue a = ctx.getBean(AnnoValue.class);
		System.out.println(a.getId());
	}
}
